const {getAswersInfo} = require('../../apiConfig/apiList/luban')
Page({
  data: {

   
  },
  onLoad: function (options) {
    this.setData({
      id: options.id
    });
  },
  onShow() {
    let that = this;
    let params = {id: this.data.id}
    getAswersInfo(params).then(res=>{
      console.log(res)
      if(res.code == 200){
        that.setData({
          createTime:res.data.createTime,
          title:res.data.title,
          response:res.data.response,
          views:res.data.views,
          id:res.data.id,
        });
      }
    })
  },

})
